/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Presentacion;

import ManejoExc.ProveedorException;
import Negocio.Empresa;
import Negocio.Proveedor;
import Negocio.TipoDeInsumo;
import java.util.Iterator;
import java.util.Map;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;

/**
 *
 * @author Diego
 */
public class FrmProveedor extends javax.swing.JDialog {
    private Empresa unaEmpresa;
    private Proveedor unProveedor;
    private TipoDeInsumo unTipoDeInsumo;
    private DefaultListModel modelproveedores = new DefaultListModel();
    private DefaultListModel modelTipoInsumos = new DefaultListModel();

    /**
     * Creates new form FrmProveedor
     */
    public FrmProveedor(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }
    public FrmProveedor(java.awt.Frame parent, boolean modal,Empresa unaEmpresa) {
        super(parent, modal);
        initComponents();
        this.unaEmpresa = unaEmpresa;
        this.inicializar();
    }
    public void inicializar(){
        this.LstProveedores.setModel(modelproveedores);
        this.LstTiposInsumoProveedor.setModel(modelTipoInsumos);
        this.cargarProveedores();
        
        if(this.unProveedor != null){
            this.TxtCuit.setText(this.unProveedor.getCuit());
            this.TxtDireccion.setText(this.unProveedor.getDireccion());
            this.TxtEmail.setText(this.unProveedor.getEmail());
            this.TxtRazonSocial.setText(this.unProveedor.getEmail());
        }
        this.setTitle("Proveedores");
    }
    
    public void cargarTiposDeInsumos(){
        this.modelTipoInsumos.clear();
        if(this.unProveedor.getTiposDeInsumos() != null && this.unProveedor.getTiposDeInsumos().size() > 0){
        Iterator it = this.unProveedor.getTiposDeInsumos().iterator();
        while (it.hasNext()){           
           this.modelTipoInsumos.addElement((TipoDeInsumo) it.next());
        }
        }else{
            this.modelTipoInsumos.addElement("No se cargaron Tipos de Insumo Para El proveedor Seleccinado");
        }
    }
    
    public void cargarProveedores(){
        this.modelproveedores.clear();
        
        if(this.unaEmpresa.getProveedoresActivos()!= null && this.unaEmpresa.getProveedoresActivos().size() > 0){
            for (Map.Entry proveedor : this.unaEmpresa.getProveedoresActivos().entrySet()) {
                this.modelproveedores.addElement((Proveedor) proveedor.getValue());
            }
        }else{
            this.modelproveedores.addElement("No se Encontraron Proveedores");
        }        
    }
    
    public void limpiar(){
            this.TxtCuit.setText("");
            this.TxtDireccion.setText("");
            this.TxtEmail.setText("");
            this.TxtRazonSocial.setText("");
            this.unProveedor=null;
            this.cargarProveedores();
            this.modelTipoInsumos.clear();           
            this.TxtRazonSocial.setEnabled(false);
            this.TxtCuit.setEnabled(false);
            this.TxtEmail.setEnabled(false);
            this.TxtDireccion.setEnabled(false);
            this.LstTiposInsumoProveedor.setEnabled(false);
            this.BtnQuitarTipoDeInsumo.setEnabled(false);
            this.BtnAgregarTipoDeInsumo.setEnabled(false);
            this.jBtnAgregar.setEnabled(false);
            this.BtnCancel.setEnabled(false);
            this.BtnNuevo.setEnabled(true);
    }
    
    public void setTipoDeInsumo (TipoDeInsumo unTipo){
        this.unTipoDeInsumo = unTipo;
        this.unProveedor.agregarInsumo(unTipo);
        this.cargarTiposDeInsumos();
    }
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        LstProveedores = new javax.swing.JList();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        TxtRazonSocial = new javax.swing.JTextField();
        TxtCuit = new javax.swing.JTextField();
        TxtEmail = new javax.swing.JTextField();
        TxtDireccion = new javax.swing.JTextField();
        jBtnAgregar = new javax.swing.JButton();
        BtnCambiarEstado = new javax.swing.JToggleButton();
        BtnCancel = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        LstTiposInsumoProveedor = new javax.swing.JList();
        BtnAgregarTipoDeInsumo = new javax.swing.JButton();
        BtnQuitarTipoDeInsumo = new javax.swing.JButton();
        BtnNuevo = new javax.swing.JButton();
        BtnAceptar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        LstProveedores.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        LstProveedores.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                LstProveedoresMouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(LstProveedores);

        jLabel1.setText("Razon Social");

        jLabel2.setText("CUIT");

        jLabel3.setText("Email");

        jLabel4.setText("Direccion");

        TxtRazonSocial.setEnabled(false);

        TxtCuit.setEnabled(false);

        TxtEmail.setEnabled(false);
        TxtEmail.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TxtEmailActionPerformed(evt);
            }
        });

        TxtDireccion.setEnabled(false);

        jBtnAgregar.setText("Guardar");
        jBtnAgregar.setEnabled(false);
        jBtnAgregar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnAgregarActionPerformed(evt);
            }
        });

        BtnCambiarEstado.setText("Dar de Baja");
        BtnCambiarEstado.setEnabled(false);
        BtnCambiarEstado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnCambiarEstadoActionPerformed(evt);
            }
        });

        BtnCancel.setText("Cancelar");
        BtnCancel.setEnabled(false);
        BtnCancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnCancelActionPerformed(evt);
            }
        });

        LstTiposInsumoProveedor.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        LstTiposInsumoProveedor.setEnabled(false);
        LstTiposInsumoProveedor.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                LstTiposInsumoProveedorMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(LstTiposInsumoProveedor);

        BtnAgregarTipoDeInsumo.setText("+");
        BtnAgregarTipoDeInsumo.setEnabled(false);
        BtnAgregarTipoDeInsumo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnAgregarTipoDeInsumoActionPerformed(evt);
            }
        });

        BtnQuitarTipoDeInsumo.setText("-");
        BtnQuitarTipoDeInsumo.setEnabled(false);
        BtnQuitarTipoDeInsumo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnQuitarTipoDeInsumoActionPerformed(evt);
            }
        });

        BtnNuevo.setText("Nuevo");
        BtnNuevo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnNuevoActionPerformed(evt);
            }
        });

        BtnAceptar.setText("Aceptar");
        BtnAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BtnAceptarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(TxtRazonSocial, javax.swing.GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE)
                            .addComponent(TxtCuit)
                            .addComponent(TxtEmail)
                            .addComponent(TxtDireccion)))
                    .addComponent(jScrollPane2)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(BtnQuitarTipoDeInsumo)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(BtnAgregarTipoDeInsumo)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(BtnCambiarEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(BtnNuevo)
                                .addGap(4, 4, 4)
                                .addComponent(jBtnAgregar)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(BtnCancel))
                            .addComponent(BtnAceptar, javax.swing.GroupLayout.Alignment.TRAILING))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(TxtRazonSocial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(TxtCuit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(TxtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(TxtDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(BtnAgregarTipoDeInsumo)
                            .addComponent(BtnQuitarTipoDeInsumo))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(BtnNuevo)
                            .addComponent(BtnCancel)
                            .addComponent(BtnCambiarEstado)
                            .addComponent(jBtnAgregar))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 134, Short.MAX_VALUE)
                        .addComponent(BtnAceptar))
                    .addComponent(jScrollPane1))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void TxtEmailActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TxtEmailActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_TxtEmailActionPerformed

    private void LstProveedoresMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_LstProveedoresMouseClicked
        // TODO add your handling code here:
           if(this.modelproveedores.size() > 0){ //Si hay algo cargado
            this.unProveedor = (Proveedor) this.modelproveedores.getElementAt(this.LstProveedores.getSelectedIndex());
            this.TxtCuit.setText(this.unProveedor.getCuit());
            this.TxtDireccion.setText(this.unProveedor.getDireccion());
            this.TxtEmail.setText(this.unProveedor.getEmail());
            this.TxtRazonSocial.setText(this.unProveedor.getRazonSocial());
            this.cargarTiposDeInsumos();            
            this.TxtRazonSocial.setEnabled(true);
            this.TxtCuit.setEnabled(true);
            this.TxtEmail.setEnabled(true);
            this.TxtDireccion.setEnabled(true);
            this.LstTiposInsumoProveedor.setEnabled(true);
            this.BtnQuitarTipoDeInsumo.setEnabled(true);
            this.BtnAgregarTipoDeInsumo.setEnabled(true);
            this.jBtnAgregar.setEnabled(true);
            this.BtnCancel.setEnabled(true);
            this.BtnCambiarEstado.setEnabled(true);
            this.BtnNuevo.setEnabled(false);
        }
    }//GEN-LAST:event_LstProveedoresMouseClicked

    private void jBtnAgregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnAgregarActionPerformed
        // TODO add your handling code here:
        if(this.unProveedor != null){
            try {
                this.unaEmpresa.actulizarProveedor(this.unProveedor,this.TxtCuit.getText(),this.TxtDireccion.getText(),this.TxtEmail.getText(),this.TxtRazonSocial.getText());
                 this.limpiar();
            }
            catch (ProveedorException ex){
                JOptionPane.showMessageDialog(this, ex.getMessage());
            }
        }else{
            try {
                this.unaEmpresa.nuevoProveedor(this.TxtCuit.getText(),this.TxtDireccion.getText(),this.TxtEmail.getText(),this.TxtRazonSocial.getText());
                 this.limpiar();
            }
            catch (ProveedorException ex){
                JOptionPane.showMessageDialog(this, ex.getMessage());
            }
        }
       
        
    }//GEN-LAST:event_jBtnAgregarActionPerformed

    private void BtnCambiarEstadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnCambiarEstadoActionPerformed
        // TODO add your handling code here:
        int mc,bc,ch=1;
        mc = JOptionPane.QUESTION_MESSAGE;
        bc = JOptionPane.YES_NO_CANCEL_OPTION;
        ch = JOptionPane.showConfirmDialog (this, "Desea dar de Baja al proveedor seleccionado", "Confirmacion", bc, mc); 
        if(ch == 0){  
            this.unProveedor.cambiarEstado(!this.unProveedor.getActivo());
        }
        this.limpiar();
    }//GEN-LAST:event_BtnCambiarEstadoActionPerformed

    private void BtnCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnCancelActionPerformed
        // TODO add your handling code here:
        this.limpiar();
    }//GEN-LAST:event_BtnCancelActionPerformed

    private void BtnAgregarTipoDeInsumoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnAgregarTipoDeInsumoActionPerformed
        // TODO add your handling code here:
        FrmFindTipoInsumo ventana = new FrmFindTipoInsumo(this,true,this.unaEmpresa);
        ventana.setLocationRelativeTo(this);
        ventana.setVisible(true);
        this.cargarTiposDeInsumos();
    }//GEN-LAST:event_BtnAgregarTipoDeInsumoActionPerformed

    private void BtnQuitarTipoDeInsumoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnQuitarTipoDeInsumoActionPerformed
        // TODO add your handling code here:
        if(this.unProveedor != null && this.unTipoDeInsumo != null){
            this.unProveedor.quitarTipoDeInsumo(this.unTipoDeInsumo);
            this.cargarTiposDeInsumos();
        }
    }//GEN-LAST:event_BtnQuitarTipoDeInsumoActionPerformed

    private void LstTiposInsumoProveedorMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_LstTiposInsumoProveedorMouseClicked
        // TODO add your handling code here:
        this.unTipoDeInsumo = (TipoDeInsumo)this.modelTipoInsumos.getElementAt(this.LstTiposInsumoProveedor.getSelectedIndex());
        
       
        
    }//GEN-LAST:event_LstTiposInsumoProveedorMouseClicked

    private void BtnNuevoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnNuevoActionPerformed
        // TODO add your handling code here:        
        this.TxtRazonSocial.setEnabled(true);
        this.TxtCuit.setEnabled(true);
        this.TxtEmail.setEnabled(true);
        this.TxtDireccion.setEnabled(true);
        this.LstTiposInsumoProveedor.setEnabled(true);
        this.BtnQuitarTipoDeInsumo.setEnabled(true);
        this.BtnAgregarTipoDeInsumo.setEnabled(true);
        this.jBtnAgregar.setEnabled(true);
        this.BtnCancel.setEnabled(true);
        this.unProveedor = null;
        this.BtnNuevo.setEnabled(false);
        
    
    }//GEN-LAST:event_BtnNuevoActionPerformed

    private void BtnAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnAceptarActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
    }//GEN-LAST:event_BtnAceptarActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void mains(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FrmProveedor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrmProveedor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrmProveedor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrmProveedor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the dialog 
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                FrmProveedor dialog = new FrmProveedor(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });*/
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BtnAceptar;
    private javax.swing.JButton BtnAgregarTipoDeInsumo;
    private javax.swing.JToggleButton BtnCambiarEstado;
    private javax.swing.JButton BtnCancel;
    private javax.swing.JButton BtnNuevo;
    private javax.swing.JButton BtnQuitarTipoDeInsumo;
    private javax.swing.JList LstProveedores;
    private javax.swing.JList LstTiposInsumoProveedor;
    private javax.swing.JTextField TxtCuit;
    private javax.swing.JTextField TxtDireccion;
    private javax.swing.JTextField TxtEmail;
    private javax.swing.JTextField TxtRazonSocial;
    private javax.swing.JButton jBtnAgregar;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    // End of variables declaration//GEN-END:variables
}
